package com.mew.information.service;

import com.mew.common.dc.mapper.WorldInfoMapper;
import com.mew.common.rest.information.WorldInfoBO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author dylin
 * @create 2021/4/2
 */
@Service
public class InformationService {
    @Autowired
    private WorldInfoMapper worldInfoMapper;

    /**
     * 通过时间查询当前世界消息
     * @return
     */
    public List<WorldInfoBO> queryWorldInfo(){
        return worldInfoMapper.selectByTime();
    }
}
